import { WeaTools } from 'ecCom';

export const loadData = params => WeaTools.callApi('/api/odoc/odocrequest/loadData', 'POST', params);

export const importData = params => WeaTools.callApi('/api/odoc/odocrequest/importData', 'POST', params);

export const loadMarkInfo = params => WeaTools.callApi('/api/odoc/odocrequest/loadMarkInfo', 'POST', params);

export const saveData = params => WeaTools.callApi('/api/odoc/odocrequest/saveData', 'POST', params);

export const getTableList = params => WeaTools.callApi('/api/odoc/odocrequest/getTableList', 'POST', params);

export const flowNext = params => WeaTools.callApi('/api/odoc/odocrequest/flowNext', 'POST', params);

export const getLastOperateInfo = params => WeaTools.callApi('/api/odoc/odocrequest/getLastOperateInfo', 'POST', params);

export const forceArchive = params => WeaTools.callApi('/api/odoc/odocrequest/forceArchive', 'POST', params);

/** *************************结束本人处理********************************* */
// 判断是否是最后一个处理人
export const isEndTreatPerson = params => WeaTools.callApi('/api/odoc/odocMenuOperate/getIsEndTreatPerson', 'GET', params);

export const doEndPersonTreat = params => WeaTools.callApi('/api/odoc/odocMenuOperate/doEndPersonTreat', 'POST', params);

/** *************************流程跟踪********************************* */
export const doFollowRequest = params => WeaTools.callApi('/api/odoc/odocNewTodoList/addTracksReq', 'POST', params);
export const removeFollowRequest = params => WeaTools.callApi('/api/odoc/odocNewTodoList/removeTracksReq', 'POST', params);

/** **************************自定义TAB页签***************************************** */
export const getOdocTabManagerDatas = params => WeaTools.callApi('/api/odoc/odocMenuOperate/getOdocTabManagerDatas', 'GET', params);

/** **************************签批TAB页签***************************************** */
export const isSeal = params => WeaTools.callApi('/api/odoc/hq/isSeal', 'POST', params);

export const hasSeal = params => WeaTools.callApi('/api/odoc/hq/hasSeal', 'POST', params);
export const checkSeal = params => WeaTools.callApi('/api/odoc/hq/checkSeal', 'POST', params);
